<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 刘明福
  Date: 2021/5/31
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--    <c:forEach end=""></c:forEach>--%>
    保存之前:${requestScope.abc}<br/>
    <c:set scope="request" var="abc" value="abcValue"/>
    保存之后:${requestScope.abc}<br/>

    <c:if test="${2==2}">
        <h1>12 等于 12</h1>
    </c:if>
    <c:if test="${2!=2}">
        <h1>12 等于 12</h1>
    </c:if>

    <%
        request.setAttribute("height",154);
    %>
    <c:choose>
        <c:when test="${ requestScope.height>190 }">
            <h1>小巨人</h1>
        </c:when>
        <c:when test="${ requestScope.height>180 }">
            <h1>很高</h1>
        </c:when>
        <c:when test="${ requestScope.height>170 }">
            <h1>较高</h1>
        </c:when>
        <c:otherwise>
            <h1>其他</h1>
            <c:choose>
                <c:when test="${requestScope.height>160}">
                    <h1>一般</h1>
                </c:when>
                <c:when test="${requestScope.height>150}">
                    <h1>较矮</h1>
                </c:when>
            </c:choose>
        </c:otherwise>
    </c:choose>


</body>
</html>
